<?php

namespace App\Http\Controllers;

use App\Models\Content;
use Illuminate\Http\Request;

class ContentController extends Controller
{
    public function index()
    {
        $contents = Content::get();
        return view('home', compact('contents'));
    }

    public function create()
    {
        return '创建界面';
    }


    public function store(Request $request)
    {
    }

    public function show(Content $content)
    {
        return view('content', compact('content'));
    }


    public function edit(Content $content)
    {
    }


    public function update(Request $request, Content $content)
    {
    }

    public function destroy(Content $content)
    {
    }
}
